package wx.actions;

import com.jinyou.utils.common.AjaxResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import pay.weixin.WeixinPayUtils;

/**
 * Created by Administrator on 2018/3/27.
 */
@Controller
public class WXTestAction {

    //
    @RequestMapping(method = RequestMethod.POST, value = "/wx/ca/test")
    @ResponseBody
    public String demo() {

        String result = WeixinPayUtils.testCA();
        return AjaxResult.successResult(result);
    }


}
